//
//  GYX_FatherData.m
//  MELive
//
//  Created by dllo on 16/10/20.
//  Copyright © 2016年 雅馨. All rights reserved.
//

#import "GYX_FatherData.h"
#import "GYX_SonData.h"

@implementation GYX_FatherData
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            GYX_SonData *node = [GYX_SonData modelWithDictionary:dic];
            [array addObject:node];
        }
        _data = array;
    }
}

@end
